import random
if __name__ == '__main__':
    y=random.randint(1,101)
    while 1:
        x = int(input('请输入你猜的数'))
        if x>y:
            print('大了')
        elif x<y:
            print('小了')
        elif x==y:
            print('猜对了')
            break
